/*
 * uart.h
 *
 *  Created on: 10/07/2009
 *      Author: Felipe Lavratti
 */

#ifndef UART_H_
#define UART_H_

#include "../lpc_config.h"

#define	UART_CH_0	0x0
#define	UART_CH_1	0x1
#define	UART_CH_2	0x2
#define	UART_CH_3	0x4

void	UARTInit(UNS_32 baud, UNS_8 location, UNS_8 channel);
UNS_8	UARTIsDataReady(UNS_8 channel);
UNS_8	UARTReceiveByte(UNS_8 channel);
UNS_8	UARTWaitForByte(UNS_8 channel);
void	UARTTransmitByte(UNS_8 ch, UNS_8 channel);
void 	UARTTransmitString(UNS_8 *str, UNS_8 channel);

#endif /* UART_H_ */
